/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */

package org.abc;

import java.time.LocalTime;
import java.time.format.DateTimeFormatter;

/**
 * <p>Project: jse2303 - LocalTimeDemo
 * <p>Powered by webrx On 2023-07-10 11:35:41
 * <p>描述：<p>
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class LocalTimeDemo {
    public static void main(String[] args) {
        LocalTime time = LocalTime.MAX;
        System.out.println(time);
        var t1 = LocalTime.now();
        System.out.println(t1);
        System.out.printf("%tT%n", t1);
        System.out.println(t1.format(DateTimeFormatter.ofPattern("HH:mm:ss a")));
    }
}
